package com.api.shopapi.service.impl;


import com.api.shopapi.entity.OrderBusinessTradenoRel;
import com.api.shopapi.mapper.OrderBusinessTradenoRelMapper;
import com.api.shopapi.service.OrderBusinessTradenoRelService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderBusinessTradenoRelServiceImplOne")
public class OrderBusinessTradenoRelServiceImpl implements OrderBusinessTradenoRelService {

    @Autowired
    private OrderBusinessTradenoRelMapper orderBusinessTradenoRelMapper;

    @Override
    public int insert(OrderBusinessTradenoRel orderBusinessTradenoRel) {
        return orderBusinessTradenoRelMapper.insert(orderBusinessTradenoRel);
    }

    @Override
    public int delete(String orderBusinessTradeNoRelCode) {
        return orderBusinessTradenoRelMapper.delete(orderBusinessTradeNoRelCode);
    }

    @Override
    public int update(OrderBusinessTradenoRel orderBusinessTradenoRel) {
        return orderBusinessTradenoRelMapper.update(orderBusinessTradenoRel);
    }

    @Override
    public List<OrderBusinessTradenoRel> getList() {
        return orderBusinessTradenoRelMapper.getList();
    }

    @Override
    public OrderBusinessTradenoRel getByOrderBusinessTradeNoRelCode(String orderBusinessTradeNoRelCode) {
        return orderBusinessTradenoRelMapper.getByOrderBusinessTradeNoRelCode(orderBusinessTradeNoRelCode);
    }

    @Override
    public List<OrderBusinessTradenoRel> getListByTradeno(String tradeno){
        return orderBusinessTradenoRelMapper.getListByTradeno(tradeno);
    }

    @Override
    public OrderBusinessTradenoRel getByOrderBusinessCode(@Param("orderBusinessCode") String orderBusinessCode){
        return orderBusinessTradenoRelMapper.getByOrderBusinessCode(orderBusinessCode);
    }


}
